﻿using System;
using System.Collections.Generic;
using System.Text;
using Validate.Library;

namespace Project.Model
{
    /// <summary>
    /// 修改考情信息传输实体
    /// </summary>
    public class AttendanceModifyRequest
    {
        /// <summary>
        /// 唯一编码
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 10, Description = "唯一标识符")]
        public int ID
        {
            get; set;
        }

        /// <summary>
        /// 工作天数
        /// </summary>
        [Validate(ValidateType.NotEmpty, Regex = ValidateRegex.Number, Description = "工作天数")]
        public decimal WorkCount
        {
            get; set;
        }

        /// <summary>
        ///工作时间
        /// </summary>
        [Validate(ValidateType.NotEmpty, Regex = ValidateRegex.DateTime, Description = "工作时间")]
        public DateTime WorkTime
        {
            get; set;
        }

        /// <summary>
        /// 项目编号
        /// </summary>
        [Validate(ValidateType.NotEmpty,Description = "项目编号")]
        public string ProjectNo
        {
            get; set;
        }

        /// <summary>
        /// 内容
        /// </summary>
        public string WorkContent
        {
            get; set;
        }
        
    }
}
